{template '_header'}
<div class="main">
    <div class="page-toolbar row m-b-sm m-t-sm">
        <form action="./index.php" method="get" class="form-horizontal" plugins="form">
            <input type="hidden" name="c" value="site">
            <input type="hidden" name="a" value="entry">
            <input type="hidden" name="m" value="ewei_shopv2">
            <input type="hidden" name="do" value="web">
            <input type="hidden" name="r" value="groups.team">
            <input type="hidden" name="type" value="success">
            <div class="col-sm-6">
                <div class="btn-group btn-group-sm">
                    <button class="btn btn-default btn-sm" type="button" data-toggle="refresh"><i class="fa fa-refresh"></i></button>

                    <script type="text/javascript">
                        require(["daterangepicker"], function($){
                            $(function(){
                                $(".daterange.daterange-time").each(function(){
                                    var elm = this;
                                    $(this).daterangepicker({
                                        startDate: $(elm).prev().prev().val(),
                                        endDate: $(elm).prev().val(),
                                        format: "YYYY-MM-DD HH:mm",
                                        timePicker: true,
                                        timePicker12Hour : false,
                                        timePickerIncrement: 1,
                                        minuteStep: 1
                                    }, function(start, end){
                                        $(elm).find(".date-title").html(start.toDateTimeStr() + " 至 " + end.toDateTimeStr());
                                        $(elm).prev().prev().val(start.toDateTimeStr());
                                        $(elm).prev().val(end.toDateTimeStr());
                                    });
                                });
                            });
                        });
                    </script>

                    <input name="time[start]" type="hidden" value="2016-10-09 09:33">
                    <input name="time[end]" type="hidden" value="2016-11-09 09:33">
                    <button class="btn btn-default daterange daterange-time" type="button"><span class="date-title">2016-10-09 09:33 至 2016-11-09 09:33</span> <i class="fa fa-calendar"></i></button>
                </div>
            </div>
            <div class="col-sm-6 pull-right">
                <div class="input-group">
                    <input type="text" class="form-control input-sm" name="keyword" value="" placeholder="请输入兑换码">
                    <span class="input-group-btn">
                        <button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
                    </span>
                </div>
            </div>
        </form>
    </div>
    <div class="panel-default">
        <div class="panel-body table-responsive" style="padding:0;">
            <form action="" method="post">
                <table class="table table-hover table-bordered">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width:60px; text-align: center;">类型</th>
                        <th style="width:150px;text-align: center;">兑换码</th>
                        <th style="width:80px;text-align: center;">状态</th>

                        <th style="width:140px;text-align: center;">兑换时间</th>
                        <th style="width:180px;text-align: center;">订单号</th>
                        <th style="width:100px; text-align: center;">操作</th>
                    </tr>
                    </thead>
                    <tbody style="text-align: center;">
                    <tr>
                        <td><span class="label label-success">商品</span></td>
                        <td style="text-align:left;">1MC7N13765FVDFAI</td>
                        <td>
                            <!--label-warning-->
                            <span class="label label-warning">待发货</span>
                            <!--label-warning-->
                        </td>

                        <td>2016-10-28 11:23</td>
                        <td>DH20161107094045094688</td>
                        <td>
                            <a href="">查看详情</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
{template '_footer'}